package cn.dt.ymcc.service;

import cn.dt.ymcc.domain.PayOrder;
import cn.dt.ymcc.dto.AlipayNotifyDto;
import cn.dt.ymcc.dto.PayApplyDto;
import com.baomidou.mybatisplus.service.IService;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author whale.dai
 * @since 2022-07-30
 */
public interface IPayOrderService extends IService<PayOrder> {


    PayOrder selectByOrderNo(String orderNo);

    /**
     * 发起支付请求
     * @param dto
     * @return
     */
    String apply(PayApplyDto dto);

    /**
     * 支付成功后的回调
     * @param dto
     * @return
     * @throws Exception
     */
    String successCallback(AlipayNotifyDto dto) throws Exception;
}
